// IE11打开空白，低版本不在考虑
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
//加载全局变量
import '@/utils/config/globa';
import React from 'react';
import ReactDOM from 'react-dom/client';
import {Provider} from 'react-redux';
import store from "@/store";
import RouterComponent from '@/routers/router';
import reportWebVitals from '@/reportWebVitals';
//axios兼容低版本浏览器
import "url-search-params-polyfill";
import "@/i18n/i18n";
//加载公共样式
import "@/assets/css/common/common.css";

//antd-mobile按需加载后，依然需要在入口文件中手动引入 `global` 文件或在自己的公共样式配置:root
// import "antd-mobile/es/global/global.css";

//挂载 Mock,
import '@/mock/data1.js'; //在生产环境下注释掉
import '@/mock/data2.js';//在生产环境下注释掉

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
      <Provider store={store}>
          <RouterComponent />
      </Provider>
  </React.StrictMode>
);
reportWebVitals();
